# App distribution

首先準備一只簡單的iOS Apps 進行試驗

class ViewController: UIViewController {
    @IBOutlet var CFBundleShortVersionString: UILabel!
    @IBOutlet weak var CFBundleVersionLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String {
            CFBundleShortVersionString.text = version
        }
        
        if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String {
            CFBundleVersionLabel.text = version
        }
        
    }
}

-w506

好像要有證書 -w585

-w1641

-w1000 -w745 -w745

-w745 -w745

成功取得ipa -w770


# Firebase setup

-w1266 -w1280 -w1178

Bundle Identifier

-w1880

-w623

pod init

目錄會出現Podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Try_Firebase_App_Distribution' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Try_Firebase_App_Distribution
  pod 'Firebase/Analytics' //Add this

end
pod install

-w770

-w826

運行一次

-w771

然後要再重開輸出一次ipa檔案


-w796 -w1027

-w679

測試人員會收到email, 跟著步驟做就好 Profile的部分是會將手機的UUID上傳到Firebase

IMG_9471

現在還不能下載,因為需要開發者將UUID加入帳號

當測試人員安裝Profile後, 開發者會收到email

-w656

接著跟隨步驟將測試人員設備的UUID 加入apple developer ac(上限100個)

-w1280

Xnip2020-01-25_20-34-00

Xnip2020-01-25_20-34-16

Xnip2020-01-25_20-34-38

然後再重新生成和上傳ipa去firebase, 測試人員會看到狀態由Waiting for developer 變到 Downlaod

成功下載!

IMG_9474

Last Updated: Sat Jan 25 2020 13:28:03 GMT+0000
贊助商連結
(adsbygoogle = window.adsbygoogle || []).push({});